package com.zystest01.demo.action;

import com.zystest01.demo.pojo.Manhle;
import com.zystest01.demo.service.ManhleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ManhleAction {
    @Autowired
    ManhleService service;

    @RequestMapping("/getManhleByCuid")
    public Manhle getManhleByCuid(@RequestParam String cuid){
        return service.getManhleByCuid(cuid);
    }

    @RequestMapping("/getManhle")
    public List<Manhle> getManhle(){
        return service.getManhle();
    }
}
